package com.heima.wemedia.service;

import java.util.Date;

public interface WmNewsTaskService {

    /**
     * 添加文章信息到延时队列里面
     */
    void addNewsToTask(Integer id, Date pushTime) throws InterruptedException;

    /**
     * 消费任务
     */
    void pollNewsTask() throws Exception;
}
